package main.gui.utils;

import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.util.Locale;

public class PriceDecimalFormatFactory {
	public static DecimalFormat getDecimalFormat(String pattern, Locale locale)
	{
		NumberFormat nf = NumberFormat.getNumberInstance(locale);
		DecimalFormat df = (DecimalFormat)nf;
		df.applyPattern(pattern);
		return df;
	}
}
